import bisect
ls = [1,5,9,13,17]
index1 = bisect.bisect(ls,-1)
index2 = bisect.bisect_left(ls,70)
index3 = bisect.bisect_right(ls,7)
print("index1 = {}, index2 = {}, index3 = {}".format(index1, index2, index3))


